RandomAccessFile 中文乱码

   RandomAccessFile 的默认编码为ISO-8859-1

   在使用时,需要根据需要进行转换。

  不转换可以使用:  String data =new String(tmp.getBytes("ISO8859-1")) ;

  转换使用 :           String data =new String(tmp.getBytes("ISO-8859-1"), "gbk") ;


2018-07-08 18:53:49 [信息] #####################################################
2018-07-08 18:53:49 [信息] @BeforeSuitestart
2018-07-08 18:53:49 [信息] Runner Browser is:firefox
2018-07-08 18:53:49 [信息] Browser Address is :C:Program Files (x86)Mozilla Firefoxfirefox.exe
2018-07-08 18:53:49 [信息] runner_machine_servername :AAA
2018-07-08 18:53:49 [信息] plateform_service_url :http://192.168.31.107:8080

相关标签:


评论: